package com.example.demo11.dem2;

/**
 * @program: demo11
 * @description:
 * @author: 诸葛龙辰
 * @create: 2022-10-31 20:35
 **/
public class Test {
    public static void main(String[] args) {
        //创建任务对象
        MyRunnable task1 = new MyRunnable();
        //创建线程对象
        Thread t1 =new Thread(task1);
        t1.start();
        for (int i = 0; i < 20; i++) {
            System.out.println(Thread.currentThread().getName()+"T1======"+i);

        }
    }
}
